import request from "@/utils/request"

//列表查询
export const queryPageApi = 
    (name,gender,begin,end,page,pageSize) => 
    request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)


// 新增员工信息
export const addEmpApi = (emp) => request.post('/emps',emp)


// 编辑员工信息
// 1.根据id查询员工信息
export const queryEmpByIdApi = (id) => request.get(`/emps/${id}`)


// 2.编辑信息
export const updateEmpApi = (emp) => request.put('/emps',emp)


// 删除数据
// 根据id删除单个学生
export const delEmpByIdApi = (ids) => request.delete(`/emps?ids=${ids}`)


// 查询班主任
export const findAllMaster = () => request.get(`/emps/list`)


